<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>title</title>
</head>

<body>
<div th:if="${session.user != null}">
		<span th:text="'欢迎回来 '+${session.user.id}+'!  '">
		</span><a href="/logout">退出</a>
</div>

<a href="/main">main</a>
<span shiro:hasPermission="manage"> | <a href="/manage">manage</a></span>
<span shiro:hasRole="admin"> | <a href="/admin">admin</a></span>

<br>
<h1>index</h1>

</body>
</html>
